random: add missing include xen/cache.h
authorJulien Grall <julien.grall@linaro.org>
Thu, 29 Jan 2015 14:50:00 +0000 (15:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Jan 2015 14:50:00 +0000 (15:50 +0100)
commit685b1dcb519e01ad63edc7f3ca7af6383372d41b
treec49fe69e24f31c9f64a4c7852732b7f1e6be906b
parent7977148feee792f79d3d07b27aedb0ef69cdb4c9
random: add missing include xen/cache.h

The commit f6c9698 " x86: allow reading MSR_IA32_TSC with XENPF_resource_op"
introduced a built regression on ARM platform.

random.c:8:28: error: expected \91=\92\91,\92\91;\92\91asm\92 or \91__attribute__\92 before \91boot_random\92
 unsigned int __read_mostly boot_random;
                            ^
The define __read_mostly is defined in asm/cache.h which is included by
other headers on x86 but not on ARM. Include xen/cache.h to fix the
build.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/random.c